package com.me.bbs.common;

/**
 * @author Liming Wang
 * @Description
 * @Create 2023/1/9 18:56
 */
public class CommonConst {
    public static final int SUCCESS_CODE = 200;
    public static final int ERROR_CODE = 401;

    public static final int NO_LOGIN_CODE = 402;
    public static final int NO_AUTH_CODE = 403;
    public static final int SESSION_TIME_OUT_CODE = 501;

    public static final int BAN_CODE = 601;

    public static  final int NOT_EXIST_CODE = 602;
    public static final String ADMIN_FORUMS = "adminForums";
    public static final String OWNED_FORUMS = "ownedForums";
    public static final String USERNAME_REG = "^[a-zA-Z]{1}[a-zA-Z0-9]{3,8}$";
    public static final String PASSWORD_REG = "^[^\\n\\r]{5,20}$";
}
